package notifyread

// 实现枚举例子
type NotifyReadStatusEnum int

const (
	NotRead NotifyReadStatusEnum = iota + 1
	Read
)

//自定义返回枚举类型
type notifyRead struct {
	Key   string
	Value string
}

func (it NotifyReadStatusEnum) Get() notifyRead {
	switch it {
	case NotRead:
		return notifyRead{Key: "1", Value: "未读"}
	case Read:
		return notifyRead{Key: "2", Value: "已读"}
	default:
		return notifyRead{}
	}
}
